package io.admin.modules.sys.dao;

import io.admin.common.dao.BaseDao;
import io.admin.modules.sys.dto.EquipmentDTO;
import io.admin.modules.sys.entity.EquipmentEntity;
import io.admin.modules.sys.entity.EquipmentEntityPage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 设备表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2024-07-06
 */
@Mapper
public interface EquipmentDao extends BaseDao<EquipmentEntity> {
    List<EquipmentEntityPage> getList(Map<String, Object> params);
    Integer getLineCount(Map<String, Object> params);

    EquipmentDTO findEqByParam(EquipmentDTO equipmentDTO);

    //获取最新的排序
    Integer getSortEnd(EquipmentEntity equipmentEntity);
    EquipmentEntity getIdUpByThisSortId(EquipmentEntity equipmentEntity);
    EquipmentEntity getIdDownByThisSortId(EquipmentEntity equipmentEntity);
}